<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
    <link rel="stylesheet" href="css/ui-color.css">
	<link rel="stylesheet" href="css/ui-res.css">
	<link rel="stylesheet" href="css/ui-img.css">
   <script src="js/jquery-2.0.0.js"></script>
	<script src="js/iscroll.js"></script>
	<script src="js/pull.js"></script>
	<script src="js/zy_control.js"></script>
	<script src="js/zy_click.js"></script>
	<script src="js/zy_tmpl.js"></script>
    <script></script>
</head>
<body class="um-vp c-wh" ontouchstart>
    <div id="page_0" class="up ub ub-ver" tabindex="0">
        <!--header开始-->
        <div id="header" class="uh c-org  t-wh ub" onclick="" style="background-color:#0666ba">
        	<div class="umw4 imgPerData2 btn  uinn btn-l   t-wh" onclick="loadIndex()" ontouchstart="zy_touch(btn-act)" >
            <!--插入按钮控件-->
        	</div>
            <h1 class="ut ub-f1 ulev1 ut-s tx-c">评论</h1>
			<div class="umw4  btn  uinn btn-l  t-wh" onclick="" ontouchstart="zy_touch(btn-act)" style="background-color: #0666ba;">
            <!--插入按钮控件-->
			<div  class="tx-c ulev0" onclick="" style="padding:.2em;"></div>
        	</div>
        </div>
        <!--header结束--><!--content开始-->
        <div id="content" class="ub-f1 tx-l t-bla ub-img6 res10"> 
        </div>
        <!--content结束--><!--footer开始-->
    	<div id="headers" class="uh t-wh umh4 ub" onclick="" style="background-color:#303237">
        	<div class="ub ub-f1  t-wh c-bla c-m2 b-bla tx-c" style="background-color:#303237">
			<div class="ub umh4 ub-f1" onclick="digg()" style="padding-top:0.3em;padding-bottom:0.3em;background-color:#303237;">
				<input type="radio" name="rdi1" class="uhide" value="">
				<div id="diggPic" onclick="zy_for(event)" class="uinn5 ubl uc-l1 ub-f1 che t-bla imgPra" style="background-position:right; border:0px; "></div>
				<div id="digcount" class="ub-f1 tx-l " style="padding-top:0.2em;vertical-align: middle;line-height: 2.53em;"></div>
			</div>
			<div class="ub ub-f1" style="padding-top:0.3em;padding-bottom:0.3em;background-color:#303237;">
				<input type="radio" name="rdi1" class="uhide" value="">
				<div id="comPic" onclick="zy_for(event)" class="uinn5 ubl uc-l1 ub-f1 che t-bla imgCom" style="background-position:right; border:0px; "></div>
				<div id="comment" class="ub-f1 tx-l " style="padding-top:0.2em;vertical-align: middle;line-height: 2.53em;"></div>			</div>
		</div>
        </div>
        <!--footer结束-->
    </div>
</body>
<script>
zy_init();
var comUrl="http://tm.ourstu.com/api.php/document/viewDocument?document_id=22";

window.uexOnload = function(type){
    if (!type) {
        zy_con("content", "statusDetail_content.html", 0, $$("header").offsetHeight);
    }
	window.onorientationchange=window.onresize=function(){
		zy_resize("content",0,$$("header").offsetHeight);				
	}
	loadWeibo();
}
function digg(){
	var session_id=window.localStorage["session_id"];
	var httpID=4;
	
	
	var document_id=window.localStorage["WeiBoDetail_document_id"];
	uexXmlHttpMgr.onData=function(inOpCode,inStatus,inResult){
		if(inStatus==1){
			var json=JSON.parse(inResult);
			if(json["success"]){
				var diggPic=$$("diggPic");
				diggPic.style.backgroundimage="css/image/nocompic.png";
				uexWindow.toast(1,5,"点赞成功",1000);
			}
		}
	}
	uexXmlHttpMgr.open(httpID,'post','http://tm.ourstu.com/api.php/document/diggDocument',30000);
	uexXmlHttpMgr.setPostData(httpID,'0','session_id',session_id);
	uexXmlHttpMgr.setPostData(httpID,'0','docment_id',document_id);
	uexXmlHttpMgr.send(httpID);
}
function loadWeibo(){
	var session_id=window.localStorage["session_id"];
	$.getJSON(comUrl,function(data)
		{
			if(data.success){
				window.localStorage["WeiBoDetail"]=data;
			}
			var dig=$$("digcount");
			var com=$$("comment");
			dig.innerHTML =data["document"]["digg_count"];
			com.innerHTML =data["document"]["comment_count"];
		},"json",function(e){
		},"GET","",true);
}


var tmpl_footer='<div id="footer" class="uh t-wh umh4 ub" onclick="" style="background-color:#303237">'
        	+'<div class="ub ub-f1  t-wh c-bla c-m2 b-bla tx-c" style="background-color:#303237">'
			+'<div class="ub umh4 ub-f1" style="padding-top:0.3em;padding-bottom:0.3em;background-color:#303237;">'
				+'<input type="radio" name="rdi1" class="uhide" value="">'
				+'<div onclick="zy_for(event)" class="uinn5 ubl uc-l1 ub-f1 che t-bla imgPra" style="background-position:right; border:0px; "></div>'
				+'<div class="ub-f1 tx-l " style="padding-top:0.2em;vertical-align: middle;line-height: 2.53em;">11</div>'
			+'</div>'
			+'<div class="ub ub-f1" style="padding-top:0.3em;padding-bottom:0.3em;background-color:#303237;">'
				+'<input type="radio" name="rdi1" class="uhide" value="">'
				+'<div onclick="zy_for(event)" class="uinn5 ubl uc-l1 ub-f1 che t-bla imgCom" style="background-position:right; border:0px; "></div>'
				+'<div class="ub-f1 tx-l " style="padding-top:0.2em;vertical-align: middle;line-height: 2.53em;">6</div>		</div>'
		+'</div>'
        +'</div>';
</script>
</html>
